<div class="row">
<?php 
    if(isset($data)){
        foreach($data as $row){
        ?>
        <div class="col-sm-4 col-md-4">
            <a href="<?php echo base_url();?>doc-la/<?php echo $row['url']; ?>/<?php echo $row['id']; ?>" class="fix-image" title="<?php echo $row['title']; ?>">
                <img  alt="" src="<?php echo $row['photo']; ?>" class="pull-left"/>
                <?php echo $row['title']; ?>
            </a>                 
        </div>        
        <?php        
        }
    echo $this->pagination->create_links(); // t?o link phân trang 
    }else{
        echo "Nội dung dang được cập nhật...";
    }
?>
</div>